<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>分类设置</title>
</head>
<style>
    .layui-input-line-width{
        width: 290px !important;
    }
</style>
<body>

<div class="layui-fluid">
    <blockquote class="layui-crumb">
        <a lay-href="/service/tariff/list.action">价格表管理&nbsp;&nbsp;</a>/&nbsp;
        <zmn th:if="${faultTariff.tariffId>0}">
            <span th:text="${faultTariff.tariffName}"></span>&nbsp;&nbsp;/&nbsp;
            <span>价格表详情</span>
        </zmn>
        <zmn th:if="${faultTariff.tariffId==null||faultTariff.tariffId<1}">
            <span>新增价格表</span>
        </zmn>
    </blockquote>
    <div class="layui-card" style="min-height: 600px">
        <div th:replace="service/tariff/_tab::tab"></div>
        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <input type="hidden" name="tariffId" th:value="${faultTariff.tariffId}">
            <div class="layui-card-header" style="margin-top:10px;"><b>基本信息</b></div>
            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label class="layui-form-label  layui-form-required">价格表名称:</label>
                <div class="layui-input-inline layui-input-line-width">
                    <input lay-verify="required" maxlength="50" id="tariffName"  type="text" name="tariffName" th:value="${faultTariff.tariffName=='null'?'':faultTariff.tariffName}" autocomplete="off" class="layui-input"/>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">业务类型:</label>
                <div class="layui-input-inline layui-input-line-width" style="width: 490px !important;">
                    <input type="radio" name="bizType" value="1" title="C-保外业务&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
                           th:checked="${faultTariff.bizType == 1||faultTariff.bizType ==null}" th:disabled="${faultTariff.tariffId != null}">
                    <input type="radio" name="bizType" value="3" title="B-工程业务" th:checked="${faultTariff.bizType == 3}"  th:disabled="${faultTariff.tariffId != null}">
                    <input type="radio" name="bizType" value="2" title="F-保内业务" th:checked="${faultTariff.bizType == 2}"   th:disabled="${faultTariff.tariffId != null}">
                </div>
                <div class="layui-form-mid layui-word-aux">业务类型选择后不能修改，请谨慎选择</div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">价格表类型:</label>
                <div class="layui-input-inline layui-input-line-width" style="width: 490px !important;">
                    <input type="radio" name="tariffType" lay-filter="tariffType" value="1" title="服务价格" th:disabled="${faultTariff.tariffType != null}"
                           th:checked="${faultTariff.tariffType == 1||faultTariff.tariffType == null}">
                    <input type="radio" name="tariffType" lay-filter="tariffType" value="2" title="计价器价格" th:checked="${faultTariff.tariffType == 2}" th:disabled="${faultTariff.tariffType != null}">
                    <input type="radio" name="tariffType" lay-filter="tariffType" value="3" title="提前付价格" th:checked="${faultTariff.tariffType == 3}" th:disabled="${faultTariff.tariffType != null}">
                    <input type="radio" name="tariffType" lay-filter="tariffType" value="4" title="计价器3.0价格" th:checked="${faultTariff.tariffType == 4}" th:disabled="${faultTariff.tariffType != null}">

                </div>
                <div class="layui-form-mid layui-word-aux">价格表类型新增后不能修改，请准确选择</div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">定价方式:</label>
                <div class="layui-input-inline layui-input-line-width">
                    <input type="radio" name="priceType" id="priceType_1"  value="1" title="系数定价" th:disabled="${faultTariff.priceType != null}"
                           th:checked="${faultTariff.priceType == 1||faultTariff.priceType == null}">
                    <input type="radio" name="priceType" id="priceType_2" value="2" title="城市定价" th:checked="${faultTariff.priceType == 2}" th:disabled="${faultTariff.priceType != null}">
                </div>
                <div class="layui-form-mid layui-word-aux">系数定价：价格会乘以对应的系数；城市定价：项目直接设置的城市价格；定价方式新增后不能修改，请准确选择</div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">状态:</label>
                <div class="layui-input-inline layui-input-line-width">
                    <input type="radio" name="status" value="1" title="禁用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
                           th:checked="${faultTariff.status == 1}">
                    <input type="radio" name="status" value="2" title="启用" th:checked="${faultTariff.status == 2 || faultTariff.tariffId == null }">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">排序ID:</label>
                <div class="layui-input-inline layui-input-line-width">
                    <input lay-verify="positive|required" id="sort" type="text" name="sort" th:value="${faultTariff.sort=='null'?'':faultTariff.sort}" autocomplete="off" class="layui-input"/>
                </div>
                <div class="layui-form-mid layui-word-aux">数字越小，越在前面</div>
            </div>

            <div class="layui-split">&nbsp;</div>
            <!--按钮栏
                    置于form标签内的最下方，
                    主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                    -->
            <div class="layui-form-item submit">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                    <button class="layui-btn layui-btn-primary" id="cancleBtn">
                        取消
                    </button>
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
        </form>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        serv_service_tariff_detail: "service/tariff/zmn.service.tariff.edit",
    }).use(['index', 'serv_service_tariff_detail']);
</script>
</body>
</html>